extends HBoxContainer

@export var filepath:String
@onready var file_button = $file_button

func _ready():
	file_button.text = filepath.get_file()

func _on_del_button_pressed():
	Signalbus.related_file_deled.emit(filepath)
	self.queue_free()

func _on_file_button_pressed():
	OS.shell_show_in_file_manager(filepath)
